const Controller = require('egg').Controller;
/**
 * @controller 菜单 menus
 */

class MenusController extends Controller {
	/** 
	 * @summary 获取用户菜单
	 * @description 获取用户菜单
	 * @router get /api/v1/menus/user_menus
	 */
  async userMenus() {
    const { ctx, service } = this;
    const res = await service.menus.userMenus();
    ctx.helper.body.SUCCESS({ ctx, res });
  }
}

module.exports = MenusController;